package com.abe.libcore.utils.normal;

import android.view.Gravity;
import android.widget.Toast;

import com.abe.libcore.utils.Utils;

public class ToastUtils {
    public static void show(String message) {
        Toast toast = Toast.makeText(Utils.getContext(), message, Toast.LENGTH_SHORT);
        toast.setGravity(Gravity.CENTER, 0, 0);
        toast.show();
    }

    public static void show(int message) {
        Toast toast = Toast.makeText(Utils.getContext(), message, Toast.LENGTH_SHORT);
        toast.setGravity(Gravity.CENTER, 0, 0);
        toast.show();
    }

    public static void showTop(String message) {
        Toast toast = Toast.makeText(Utils.getContext(), message, Toast.LENGTH_SHORT);
        toast.setGravity(Gravity.TOP, 0, 0);
        toast.show();

    }

    public static void showTop(int message) {
        Toast toast = Toast.makeText(Utils.getContext(), message, Toast.LENGTH_SHORT);
        toast.setGravity(Gravity.TOP, 0, 0);
        toast.show();

    }

    public static void showBottom(String message) {
        Toast toast = Toast.makeText(Utils.getContext(), message, Toast.LENGTH_SHORT);
        toast.setGravity(Gravity.BOTTOM, 0, 0);
        toast.show();
    }

    public static void showBottom(int message) {
        Toast toast = Toast.makeText(Utils.getContext(), message, Toast.LENGTH_SHORT);
        toast.setGravity(Gravity.BOTTOM, 0, 0);
        toast.show();
    }
}
